import instance from "@/utils/request";

// 部门下拉选渲染接口
export const deptSelect = ()=> instance.get("/depts/select")

// 部门列表
export const deptList = (deptSearch)=> instance.post("/depts/list",deptSearch)

// 添加或修改部门信息
export const saveOrUpdateDept = (deptForm)=> instance.post("/depts/saveOrUpdate",deptForm)

// 根据部门id 获取部门信息
export const getDeptById = (deptId)=> instance.get("/depts/getDeptById/"+deptId)


// 根据部门id 删除部门信息
export const deleteDeptById = (deptId)=> instance.delete("/depts/delete/"+deptId)


